﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class IronNpc:Npc
    {
        public string money;

        public IronNpc(string name, NPCType type, string money) : base(name, type)
        {
            this.money = money;
        }



        public override void Speak()
        {
            Console.WriteLine("NPC：{0},{1}", this.Name, this.money);
        }
    }
}
